Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633444 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/185 - Insect_Catching_Game

Readme.md cody/swapnilsparsh/30DaysOfJavaScript/185 - Insect_Catching_Game/Readme.md
169 Views
0 Comments
# Insect-Catching Game

## A well-designed interesting game where you can play with your favourite insect and catch it to get the most scores.
![1](https://user-images.githubusercontent.com/73993775/167461684-2310bb36-38e0-4f7a-8253-49ddd9aa4e8f.png)<br><br>
![2](https://user-images.githubusercontent.com/73993775/167461690-30ae208d-ecb7-45d1-b54f-56f17a68889c.png)
# Let we selected Fly :--
![3](https://user-images.githubusercontent.com/73993775/167461696-714d0af5-a408-4b0a-b3ca-fbf0302ad2c8.png)

style.css cody/swapnilsparsh/30DaysOfJavaScript/185 - Insect_Catching_Game/style.css
106 Views
0 Comments
@import url('https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap');

* {
box-sizing: border-box;
}

body {
background-color: #516dff;
index.html cody/swapnilsparsh/30DaysOfJavaScript/185 - Insect_Catching_Game/index.html
296 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Catch The Insect</title>
</head>
script.js cody/swapnilsparsh/30DaysOfJavaScript/185 - Insect_Catching_Game/script.js
159 Views
0 Comments
const screens = document.querySelectorAll('.screen');
const choose_insect_btns = document.querySelectorAll('.choose-insect-btn');
const start_btn = document.getElementById('start-btn')
const game_container = document.getElementById('game-container')
const timeEl = document.getElementById('time')
const scoreEl = document.getElementById('score')
const message = document.getElementById('message')
let seconds = 0